Package com.cisco.pt.impl
Class IPCMessageLTV
java.lang.Object
com.cisco.pt.impl.LTVImpl
com.cisco.pt.impl.IPCMessageLTV
- All Implemented Interfaces:
LTV
Encapsulates IPC Message PTMP message
- Author:
- packettracerexapps@external.cisco.com
-
Field Summary
FieldsFields inherited from interface com.cisco.pt.LTV
AUTH_CHALLENGE_TYPE, AUTH_REQUEST_TYPE, AUTH_RESPONSE_TYPE, AUTH_STATUS_TYPE, DISCONNECT_MESSAGE_TYPE, IPC_ERROR_TYPE, IPC_EVENT_SUBSCRIPTION_TYPE, IPC_EVENT_TYPE, IPC_MESSAGE_TYPE, IPC_RESPONSE_TYPE, KEEP_ALIVE_MESSAGE_TYPE, MULTI_USER_MESSAGE_TYPE, NEGOTIATION_MESSAGE_TYPE, PTMP_TYPE_MUCONIN, PTMP_TYPE_MUCONOUT, PTMP_TYPE_MULINKUPDATE, PTMP_TYPE_MULINKUPDATESTATUS, PTMP_TYPE_MUNAMEUPDATE, PTMP_TYPE_MUNEGOREQ, PTMP_TYPE_MUNEGORESP, PTMP_TYPE_MUPDU, PTMP_TYPE_MUPORTADV, PTMP_TYPE_MUSAVENETREQ, PTMP_TYPE_MUSAVENETRESP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddCalls(IPCMessageLTV otherMessage) voidgetCalls()intbooleanMethods inherited from class com.cisco.pt.impl.LTVImpl
getLength, getNextMessageId, getType, getValue, isEvent, isMuMessage, isResponse, setLength, setType, setValue
-
Field Details
-
messageId
protected int messageId -
calls
-
-
Constructor Details
-
IPCMessageLTV
public IPCMessageLTV()constructor
-
-
Method Details
-
hasResponse
public boolean hasResponse()- Specified by:
hasResponsein interfaceLTV- Overrides:
hasResponsein classLTVImpl- Returns:
- true if the message generates a response from Packet Tracer
-
getMessageId
public int getMessageId()- Specified by:
getMessageIdin interfaceLTV- Overrides:
getMessageIdin classLTVImpl- Returns:
- message id, used to match this message with its response from Packet Tracer its value is arbitrary unless (hasResponse() == true OR isResponse() == true)
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceLTV- Overrides:
encodeTypeAndPayloadin classLTVImpl- Parameters:
buff- The EncodedBuffer that this object should encode itself into
-
getCalls
- Returns:
- a list of
IPCCall
-
addCalls
- Parameters:
otherMessage- IPCMessageLTV
-
addCall
- Parameters:
call- IPCCall
-